<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>厦游网</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<script type="application/x-javascript">addEventListener("load", function() {
		setTimeout(hideURLbar, 0);
	}, false);
	function hideURLbar() {
		window.scrollTo(0, 1);
	}
</script>
<!--flexslider-css-->
<!--bootstrap-->
<link href="css/bootstrap.min.css" rel="stylesheet" type="text/css">
<!--coustom css-->
<link href="css/style.css" rel="stylesheet" type="text/css" />
<!--fonts-->
<link
	href='http://fonts.useso.com/css?family=Open+Sans:400,300,300italic,400italic,800italic,800,700italic,700,600,600italic'
	rel='stylesheet' type='text/css'>
<!--/fonts-->
<!--script-->
<script src="js/jquery.min.js"> </script>
<!-- js -->
<script src="js/bootstrap.js"></script>
<!-- js -->
<!-- js -->
<script type="text/javascript" src="js/move-top.js"></script>
<script type="text/javascript" src="js/easing.js"></script>
<!--/script-->
<script type="text/javascript">
	jQuery(document).ready(function($) {
		$(".scroll").click(function(event) {
			event.preventDefault();
			$('html,body').animate({
				scrollTop : $(this.hash).offset().top
			}, 900);
		});
	});
</script>
<!--/script-->
</head>

<body>
	<%@ include file="top.jsp"%>

	<center>
		<br /> <br />
		<h1>游记标题：${n.articleTitle }</h1>
		<p>游记作者：${n.userId.userName}</p>
		<p>游记发布时间：${n.articleDate }</p>
		<p>
			<c:if test="${img!=null }">
				<c:forEach items="${img }" var="myimg">
					<img src="myupload/${myimg }" width="200"> &nbsp;&nbsp;&nbsp;
			   </c:forEach>
			</c:if>

			<c:if test="${img==null }">
			没有图片
			</c:if>
		</p>
		<p>游记内容：</p>
		<p>${n.articleContent }</p>
		<br /> <br />
		<c:if test="${nshang==null }">
		没有上一篇
		</c:if>
		<c:if test="${nshang!=null }">
			<a href="ToArticlesInfoServlet?articleId=${nshang.articleId }">上一篇${nshang.articleTitle }</a>
		</c:if>


		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<c:if test="${nxia==null }">
		没有下一篇
		</c:if>
		<c:if test="${nxia!=null }">
			<a href="ToArticlesInfoServlet?articleId=${nxia.articleId }">下一篇${nxia.articleTitle }</a>
		</c:if>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<c:if test="${judgeId==1}">
			<a href='DeleteArticlesServlet?articleId=${n.articleId}&userId=${n.userId.userId}'>删除</a>
		</c:if>

		<br /> <br />
	</center>
	<script src="js/responsiveslides.min.js"></script>
	<script>
		$(function() {
			$("#slider").responsiveSlides({
				auto : true,
				nav : true,
				speed : 500,
				namespace : "callbacks",
				pager : true,
			});
		});
	</script>
	<%@ include file="buttom.jsp"%>
</body>
</html>
